package com.icangya.domain;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "fb_turntable_record")
public class FbTurntableRecord {  // 大转盘记录

    private long id;//编号

    private String nickName; //用户名

    private String openId;

    private long uid;

    private String headImgUrl;

    private  long missionId;//发布任务的id

    private String missionContent;// 任务内容

    private long awardId;// 获取奖励的编号

    private String awardContent;// 奖励内容

    private int status;// 转盘转动次数是否使用

    private Timestamp createTime;



    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "nick_name")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Basic
    @Column(name = "openid")
    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Basic
    @Column(name = "uid")
    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    @Basic
    @Column(name = "headImg_url")
    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    @Basic
    @Column(name = "mission_id")
    public long getMissionId() {
        return missionId;
    }

    public void setMissionId(long missionId) {
        this.missionId = missionId;
    }

    @Basic
    @Column(name = "mission_content")
    public String getMissionContent() {
        return missionContent;
    }

    public void setMissionContent(String missionContent) {
        this.missionContent = missionContent;
    }

    @Basic
    @Column(name = "award_id")
    public long getAwardId() {
        return awardId;
    }

    public void setAwardId(long awardId) {
        this.awardId = awardId;
    }
    @Basic
    @Column(name = "award_content")
    public String getAwardContent() {
        return awardContent;
    }

    public void setAwardContent(String awardContent) {
        this.awardContent = awardContent;
    }
    @Basic
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Basic
    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public FbTurntableRecord() {
    }

    public FbTurntableRecord(String nickName, String openId, long uid, String headImgUrl, long missionId, String missionContent, long awardId, String awardContent, int status, Timestamp createTime) {
        this.nickName = nickName;
        this.openId = openId;
        this.uid = uid;
        this.headImgUrl = headImgUrl;
        this.missionId = missionId;
        this.missionContent = missionContent;
        this.awardId = awardId;
        this.awardContent = awardContent;
        this.status = status;
        this.createTime = createTime;
    }
}
